package com.lms.web;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

import org.apache.catalina.Session;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.BindException;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.ServletRequestBindingException;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.SessionAttributes;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;



import com.lms.dao.lmsDAOImpl;
import com.lms.domain.LoginDetails;
import com.lms.domain.Role;
import com.lms.domain.User;
import com.lms.domain.UserDetails;
import com.lms.dto.UserDto;
import com.lms.dto.UserListDto;
import com.lms.dto.UserMapper;



@Controller
public class SocialTouchController extends MultiActionController {
	
	@Autowired
	private com.lms.service.UserService service;
	
	@RequestMapping(value="/friends.html",method = RequestMethod.GET)
	public String friends(ModelMap model) {
 
		//model.addAttribute("message", "Spring 3 MVC Hello World");
		return "friends";
 
	}
	@RequestMapping(value="/status.html",method = RequestMethod.GET)
	public String status(ModelMap model) {
 
		//model.addAttribute("message", "Spring 3 MVC Hello World");
		return "status";
 
	}
	@RequestMapping(value="/photos.html",method = RequestMethod.GET)
	public String photos(ModelMap model) {
 
		//model.addAttribute("message", "Spring 3 MVC Hello World");
		return "photos";
 
	}
	@RequestMapping(value="/likes.html",method = RequestMethod.GET)
	public String likes(ModelMap model) {
 
		//model.addAttribute("message", "Spring 3 MVC Hello World");
		return "likes";
 
	}
	
	@RequestMapping(value="/birthday.html",method = RequestMethod.GET)
	public String birthday(ModelMap model) {
 
		//model.addAttribute("message", "Spring 3 MVC Hello World");
		return "birthday";
 
	}
	
	@RequestMapping(value="/addevents.html",method = RequestMethod.GET)
	public String addevents(ModelMap model) {
 
		//model.addAttribute("message", "Spring 3 MVC Hello World");
		return "addevents";
 
	}
	
	
	
}
